package model

import (
	"encoding/json"
	"github.com/doujunyu/gogo/gogo_log"
)

const TableByMusic = "self_music"

const MusicFile = "music_file"//歌曲存放位置

type musicAuthorId struct {
	AuthorId int64 `json:"author_id"`
}
func MusicByMusicAuthorIdToJson(userIds ...interface{})string{
	datas := make([]musicAuthorId,0)
	for _, v := range userIds {
		data := musicAuthorId{
			AuthorId: v.(int64),
		}
		datas = append(datas,data)
	}
	str ,err := json.Marshal(datas)
	if err != nil {
		gogo_log.Error("model_ChatApplyFriendGroupByMergeUserIdsToJson", "数据转json失败", err.Error())
		return ""
	}
	return string(str)
}
